import request from '@/router/http'
const baseUrl = '/api/web'

export const loginByUsername = (param) => request({
    url: baseUrl + '/user/login',
    method: 'post',
    headers: {Authorization: 'Basic bm92YToxMjM0NTY='},
    data: param
})

export const refreshToken = (param) => request({
    url: baseUrl + '/user/refreshToken',
    method: 'get',
    headers: {Authorization: 'Basic bm92YToxMjM0NTY='},
    params: param
})


export const getInfo = () => request({
    url: baseUrl + '/user/info',
    method: 'get'
})

export const getNav = () => request({
    url: baseUrl + '/user/getNav',
    method: 'get'
})
